home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1999 July: Mac OS SDK / Dev.CD Jul 99 SDK1.toast / Development Kits / Mac OS / AIAT / Headers / Storage / VInt32.h < prev   
Encoding:
Text File  |  1998-04-16  |  572 b   |  34 lines  |  [TEXT/CWIE]

  1. // VInt32.h
  2. //    Copyright:    © 1994 - 1998 by Apple Computer, Inc., all rights reserved.
  3.  
  4.  
  5. // functions supporting a variable length encoding/decoding of uint32's
  6.  
  7. #pragma once
  8. #ifndef VInt32_h
  9. #define VInt32_h
  10.  
  11. #pragma import on
  12. #if PRAGMA_STRUCT_ALIGN
  13.     #pragma options align=power
  14. #endif
  15.  
  16. #include "IAStorage.h"
  17.  
  18. #pragma IA_BEGIN_EXPORTS
  19.  
  20. byte VInt32Size(uint32 i);
  21.  
  22. void VInt32Write(uint32 i, IAOutputBlock* output);
  23.  
  24. uint32 VInt32Read(IAInputBlock* input);
  25.  
  26. #pragma IA_END_EXPORTS
  27.  
  28. #if PRAGMA_STRUCT_ALIGN
  29.     #pragma options align=reset
  30. #endif
  31.  
  32. #pragma import reset
  33. #endif
  34.